<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<!DOCTYPE HTML>
<html class="no-js">
<head>
    <meta charset="<?php $this->options->charset(); ?>">
    <meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
    <meta name="renderer" content="webkit">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title><?php $this->archiveTitle(array(
            'category'  =>  _t('分类 %s 下的文章'),
            'search'    =>  _t('包含关键字 %s 的文章'),
            'tag'       =>  _t('标签 %s 下的文章'),
            'author'    =>  _t('%s 发布的文章')
        ), '', ' - '); ?><?php $this->options->title(); ?></title>
    <link rel="stylesheet" href="<?php $this->options->themeUrl('style.css'); ?>">
    <?php $this->header(); ?>
  </head>
  <body>
    <div class="container">
      <div class="columns page-header">
        <h1><?php $this->options->title() ?></h1>
      </div>
      <div class="columns">
        <div class="navigation">
          <nav class="menus-main">
            <a<?php if($this->options->logoUrl): ?> class="favicon"<?php endif; ?> href="<?php $this->options->siteUrl(); ?>"><?php if ($this->options->logoUrl): ?>
                    <img src="<?php $this->options->logoUrl() ?>" alt="<?php $this->options->title() ?>" />
                    <?php else: ?>
                    <?php _e('首页'); ?>
                    <?php endif; ?></a>
                    <?php $this->widget('Widget_Contents_Page_List')->to($pages); ?>
                    <?php while($pages->next()): ?>
                    <a href="<?php $pages->permalink(); ?>" title="<?php $pages->title(); ?>"><?php $pages->title(); ?></a>
          <?php endwhile; ?></nav>
          <nav class="right menus-right">
            <a href="<?php $this->options->feedUrl(); ?>"><?php _e('RSS'); ?></a>
            <?php if (!empty($this->options->displayOptions) && in_array('disableLoginEntry', $this->options->displayOptions)): ?>
            <?php else: ?>
            <?php if($this->user->hasLogin()): ?>
		     		<a href="<?php $this->options->adminUrl(); ?>"><?php $this->user->screenName(); ?></a>
            <a href="<?php $this->options->logoutUrl(); ?>"><?php _e('退出'); ?></a>
            <?php else: ?>
            <a href="<?php $this->options->adminUrl('login.php'); ?>"><?php _e('登录'); ?></a>
            <?php endif; ?>
            <?php endif; ?>
          </nav>
        </div>
      </div>
